package com.resourcestore.dao;

import java.util.List;

import com.resourcestore.dao.BaseDao;
import com.resourcestore.model.CourseFileSrcCatePublic;
import com.resourcestore.model.MajorGroup;
import com.resourcestore.utils.tag.Pagination;

public class CourseFileSrcCatePublicDao extends BaseDao {

	public List<CourseFileSrcCatePublic> selectCourseFileSrcCatePublic(CourseFileSrcCatePublic courseFileSrcCatePublic){
		List<CourseFileSrcCatePublic> list = this.queryForList("selectCourseFileSrcCatePublic",courseFileSrcCatePublic);
		return list;
	}
	
	public List<CourseFileSrcCatePublic> selectCourseFileSrcCatePublicByIsPreAndCourseId(CourseFileSrcCatePublic courseFileSrcCatePublic){
		List<CourseFileSrcCatePublic> list = this.queryForList("selectCourseFileSrcCatePublicByIsPreAndCourseId",courseFileSrcCatePublic);
		return list;
	}
	
	public List<CourseFileSrcCatePublic> selectCourseFileSrcCatePublicByParentId(CourseFileSrcCatePublic courseFileSrcCatePublic){
		List<CourseFileSrcCatePublic> list = this.queryForList("selectCourseFileSrcCatePublicByParentId",courseFileSrcCatePublic);
		return list;
	}
	
	public List<CourseFileSrcCatePublic> selectCourseFileSrcCatePublicPage(CourseFileSrcCatePublic courseFileSrcCatePublic,Pagination pagination){
		List<CourseFileSrcCatePublic> list = this.queryForPage("selectCourseFileSrcCatePublicPage", courseFileSrcCatePublic,pagination);
		return list;
	}
	
	public int queryCourseFileSrcCatePublicNum(CourseFileSrcCatePublic courseFileSrcCatePublic) {
		return this.queryNum("selectCourseFileSrcCatePublicCount", courseFileSrcCatePublic);
	}
	
	
	public CourseFileSrcCatePublic selectCourseFileSrcCatePublicById(CourseFileSrcCatePublic courseFileSrcCatePublic){
		return (CourseFileSrcCatePublic)this.queryForObject("selectCourseFileSrcCatePublicById", courseFileSrcCatePublic);
	}
	
	public void insertCourseFileSrcCatePublic(CourseFileSrcCatePublic courseFileSrcCatePublic){
		this.insert("insertCourseFileSrcCatePublic", courseFileSrcCatePublic);		
	}
	
	public void updateCourseFileSrcCatePublic(CourseFileSrcCatePublic courseFileSrcCatePublic){
		this.update("updateCourseFileSrcCatePublic", courseFileSrcCatePublic);	
	}
	
	public void deleteCourseFileSrcCatePublic(CourseFileSrcCatePublic courseFileSrcCatePublic){
		this.delete("deleteCourseFileSrcCatePublic", courseFileSrcCatePublic);
	}
	
	public void deleteMoreCourseFileSrcCatePublic(CourseFileSrcCatePublic courseFileSrcCatePublic){
		this.delete("deleteMoreCourseFileSrcCatePublic", courseFileSrcCatePublic);
	}
}
